// 3. 实现类 - 微信支付
package com.example.spi.impl;

import com.example.spi.PaymentService;

public class WechatPayService implements PaymentService {
    @Override
    public void pay(double amount) {
        System.out.println("使用微信支付: " + amount + " 元");
    }
    
    @Override
    public String getPaymentType() {
        return "WechatPay";
    }
}